﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="AnyOffice.general.system.user_priv.edit" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>edit</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		
		<script src="/aspnet_client/core/function.js"></script>
		<script>
function CheckForm()
{
	if(document.Form1.txtPrivNo.value == "")
   {
	 alert("角色排序号不能为空！");
	 document.Form1.txtPrivNo.focus();
	 return (false);
   }
   
   	if(!checkIsInteger(document.Form1.txtPrivNo.value))
   {
	 alert("角色排序号必须为整数！");
	 document.Form1.txtPrivNo.focus();
	 return (false);
   }
   
   if(document.Form1.txtPrivName.value == "")
   {
	 alert("角色名称不能为空！");
	 document.Form1.txtPrivName.focus();
	 return (false);
   }   
   return true;
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
					<tr>
						<td class="Big"><img src="/images/edit.gif" WIDTH="22" HEIGHT="20" align="absMiddle"><span class="big3">
								&nbsp;编辑角色</span>
						</td>
					</tr>
				</table>
				<TABLE class="small" cellSpacing="1" cellPadding="3" width="450" align="center" bgColor="#000000"
					border="0">
					<TR>
						<TD class="TableData" noWrap>角色排序号：</TD>
						<TD class="TableData" noWrap>
							<asp:TextBox id="txtPrivNo" runat="server" CssClass="BigInput" MaxLength="3" Width="50px"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>角色名称：</TD>
						<TD class="TableData" noWrap>
							<asp:TextBox id="txtPrivName" runat="server" CssClass="BigInput" MaxLength="100" Width="200px"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableControl" noWrap align="center" colSpan="2">&nbsp;&nbsp; <INPUT class="BigButton" onclick="return CheckForm()" type="submit" value="确定">
							<INPUT class="BigButton" onclick="location='index.aspx'" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
				<asp:Literal id="litPrompt" runat="server"></asp:Literal>
			</asp:Panel>
			<asp:Label id="lblMessage" runat="server"></asp:Label>
		</form>
	</body>
</HTML>
